package net.xdclass.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.xdclass.model.ProductDO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 孙浩
 * @since 2022-04-24
 */
public interface ProductMapper extends BaseMapper<ProductDO> {

  int lockProductStock(@Param("id") Long id,@Param("buyNum") int buyNum);

  int releaseProductLock(@Param("id") Long id,@Param("buyNum") Integer buyNum);
}
